package com.anan;

import java.awt.*;

/**
 * @Author: Painter
 * @project_name: aircraft-war
 * @system_login: sunshine
 * @time: 2023/11/520:18
 */



public class Hero {


    private int x;  // 坐标
    private int y;
    private Image image;  // 图片
    private boolean islive = true;  // 状态，是否活着

    public Hero(int x, int y) {
        image = Imagevalue.me1;
        this.x = x;
        this.y = y;
    }
    public Hero(int x,int y,int num) {
        image = Imagevalue.me2;
        this.x = x;
        this.y = y;
    }
    public boolean getIslive() {
        return islive;
    }

    public void setIslive(boolean islive) {
        this.islive = islive;
    }



    public Image getImage() {
        return image;
    }

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }
}
